import req1 from '@/lib/req1'
//获取出勤列表
export function attListAPI(){
    return req1.get('/attendance/attendanceList')
}
//上班打卡
export function addAttInsertAPI(){
 return req1.post('/attendance/goAdd')
}
//下班打卡
export function attUpdateAPI(){
    return req1.post('/attendance/afterAdd')
}
//删除记录
export function kpiDeleteAPI(id){
    id = id.join()
    return req1.delete('/attendance/attendanceDelete',{id})
}
//查询
export function searchAttAPI({date,type}){
    return req1.get('/attendance/attendanceLike',{date,type})
}
